import request from '@/utils/request'

export function getOrderListByPage(data) {
  return request.get('/order/list', { params: data })
}

export function getAllOrder(data) {
  return request.get('/orders', data)
}

export function addOrder(data) {
  return request.post('/order', data)
}

export function updateOrder(data) {
  return request.put('/order', data)
}

export function deleteOrder(id) {
  return request.delete('/order/' + id, id)
}
